import React, { useState, memo } from 'react';
import { Table, TablePaginationConfig, } from 'antd'
interface Props{
    header: Array<Item>
    formlist: any[]
}
interface Item {

}
function Mytable(props:Props) {
    // 表格头部
    var headerlist = [...props.header]
    // 表格里面的数据每一行渲染什么
    var formlist = [...props.formlist]
    const rowSelection = {

    }
    return (
        <div className='mytable'>
            <Table 
            // rowSelection={rowSelection}
            columns={headerlist}
            dataSource={formlist}
            size={'middle'}
            pagination={false}
            ></Table>
        </div>
    );
}

export default Mytable;